package com.noble.meether.ui.vip.bean;

import com.noble.library.base.bean.BaseData;

import org.json.JSONObject;

/**
 * VIP特权解析类
 */
public class Privilege extends BaseData {
    private int id;
    private String img;
    private String title;
    private String remark;
    private int statusVip;
    private int sortId;

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject = getJsonObject(jsonStr);

        this.setId(jsonObject.optInt("Id"));
        this.setImg(jsonObject.optString("Img"));
        this.setTitle(jsonObject.optString("Title"));
        this.setRemark(jsonObject.optString("Remark"));
        this.setStatusVip(jsonObject.optInt("StatusVip"));
        this.setSortId(jsonObject.optInt("SortId"));
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getStatusVip() {
        return statusVip;
    }

    public void setStatusVip(int statusVip) {
        this.statusVip = statusVip;
    }

    public int getSortId() {
        return sortId;
    }

    public void setSortId(int sortId) {
        this.sortId = sortId;
    }
}
